﻿#contenthost {
    height: 100%;
    width: 100%;
}

.fragment {
    /* Define a grid with rows for a banner and a body */
    -ms-grid-columns: 1fr auto;
    -ms-grid-rows: 1fr;
    display: -ms-grid;
    height: 100%;
    width: 100%;
}

    .fragment header[role=banner],
    .fragment #header {
        /* Define a grid with columns for the back button and page title. */
        -ms-grid-columns: 120px 1fr;
        -ms-grid-rows: 1fr;
        display: -ms-grid;
    }

        .fragment header[role=banner] .win-backbutton,
        .fragment #header .win-backbutton {
            margin-left: 39px;
            margin-top: 59px;
        }

        .fragment header[role=banner] .titlearea,
        .fragment #header .titlearea{
            -ms-grid-column: 2;
            margin-top: 37px;
        }

            .fragment header[role=banner] .titlearea .pagetitle,
            .fragment #header .titlearea .pagetitle{
                width: calc(100% - 20px);
            }

    .fragment section[role=main] {
        -ms-grid-row: 1;
        height: 100%;
        width: 100%;
    }



@media screen and (-ms-view-state: snapped) {
    .fragment header[role=banner],
    .fragment #header {
        -ms-grid-columns: auto 1fr;
        margin-left: 20px;
    }

        .fragment header[role=banner] .win-backbutton,
        .fragment #header .win-backbutton{
            margin: 0;
            margin-right: 10px;
            margin-top: 76px;
        }

            .fragment header[role=banner] .win-backbutton:disabled,
            .fragment #header .win-backbutton:disabled{
                display: none;
            }

        .fragment header[role=banner] .titlearea,
        .fragment #header .titlearea{
            -ms-grid-column: 2;
            margin-left: 0;
            margin-top: 68px;
        }
}

@media screen and (-ms-view-state: fullscreen-portrait) {
    .fragment header[role=banner],
    .fragment #header {
        -ms-grid-columns: 100px 1fr;
    }

        .fragment header[role=banner] .win-backbutton,
        .fragment #header .win-backbutton{
            margin-left: 29px;
        }
}

/* TITLE BAR STYLES FOR HOME PAGE */
#appBarUpperHeader{
    /* Define a grid with columns for the back button and page title. */
    -ms-grid-columns: 20px 1fr;
    -ms-grid-rows: 1fr;
    display: -ms-grid;
}

.fragment header[role=banner] .appBarTitleArea {
    -ms-grid-column: 2;
}

    .fragment header[role=banner] .appBarTitleArea .pagetitle {
        width: calc(100% - 20px);
    }

/* main styles for app bar to show title and back button */

#progressDisplay
{
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	color: white;
	background-color: transparent;
	z-index: 1001;
	visibility:collapse;
}

	#progressDisplay .transparent {
		position: absolute;
		left: 0px;
		top: 0px;
		width: 100%;
		height: 100%;
		opacity:.5;
		background-color:#323232;
	}

	#progressDisplay .progressContent {
		position: absolute;
		left: 0px;
		top: calc(50% - (250px/2));
		width: 100%;
		height: auto;
		min-height:250px;
		opacity:1;
		background-color:#323232;
	}

	#progressDisplay p,
	#progressDisplay progress {
		opacity: 1;
		position: absolute;
		top: calc(50% - (80pt/2));
		width: 100%;
		text-align: center;
		color: white !important;
	}

	#progressDisplay progress {
		left: 0;
		top: 55%;
	}
	
	@media screen and (-ms-view-state: snapped) {
		#progressDisplay progress {
			left: 0;
			top: 43%;
		}
	}

.progressDisplayEdge
{
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 30px;
	color: white;
	background-color: #323232;
	opacity:1;
	visibility: visible;
}
	.progressDisplayEdge p {
		position:absolute;
		padding-left:5px;
		top:-5px;
		text-align: left;
		color: white !important;
	}
	
	.progressDisplayEdge progress{
		margin:5px;
		position: absolute;
		color: white !important;
	}